package com.ruoyi.base.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 库存信息对象 t_inventory
 *
 * @author wonderland
 * @date 2023-07-16
 */
public class Inventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存id */
    private Long id;

    /** 条码 */
    @Excel(name = "条码")
    private String barCode;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 规格 */
    @Excel(name = "规格")
    private String size;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 颜色 */
    @Excel(name = "颜色")
    private String color;

    /** 类别 */
    @Excel(name = "类别")
    private String type;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 单价 */
    @Excel(name = "单价")
    private Long unitPrice;

    /** 初始库存 */
    @Excel(name = "初始库存")
    private Long initialInventory;

    /** 库存 */
    @Excel(name = "库存")
    private Long inventory;

    /** 库存金额 */
    @Excel(name = "库存金额")
    private Long inventoryAmount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBarCode(String barCode)
    {
        this.barCode = barCode;
    }

    public String getBarCode()
    {
        return barCode;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setSize(String size)
    {
        this.size = size;
    }

    public String getSize()
    {
        return size;
    }
    public void setModel(String model)
    {
        this.model = model;
    }

    public String getModel()
    {
        return model;
    }
    public void setColor(String color)
    {
        this.color = color;
    }

    public String getColor()
    {
        return color;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setUnitPrice(Long unitPrice)
    {
        this.unitPrice = unitPrice;
    }

    public Long getUnitPrice()
    {
        return unitPrice;
    }
    public void setInitialInventory(Long initialInventory)
    {
        this.initialInventory = initialInventory;
    }

    public Long getInitialInventory()
    {
        return initialInventory;
    }
    public void setInventory(Long inventory)
    {
        this.inventory = inventory;
    }

    public Long getInventory()
    {
        return inventory;
    }
    public void setInventoryAmount(Long inventoryAmount)
    {
        this.inventoryAmount = inventoryAmount;
    }

    public Long getInventoryAmount()
    {
        return inventoryAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("barCode", getBarCode())
                .append("name", getName())
                .append("size", getSize())
                .append("model", getModel())
                .append("color", getColor())
                .append("type", getType())
                .append("unit", getUnit())
                .append("unitPrice", getUnitPrice())
                .append("initialInventory", getInitialInventory())
                .append("inventory", getInventory())
                .append("inventoryAmount", getInventoryAmount())
                .toString();
    }
}
